<template>
  <el-dialog title="新增用户" v-model="visible" :close-on-click-modal="false" @closed="cancel"
             destroy-on-close width="60%" @closed="cancel">
    <el-form style="margin-top: 20px;" label-width="120px">
      <el-form-item label="班级id:">
        <el-input placeholder="班级" :value="classGradeId"></el-input>
      </el-form-item>
      <el-form-item label="日期">
        <el-input  placeholder="日期"></el-input>
      </el-form-item>
      <el-form-item label="内容">
        <el-input  placeholder="内容"></el-input>
      </el-form-item>
    </el-form>
    <template #footer>
      <div>
        <el-button type="primary" >添加</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script>
export default {
  name: "AddCourseDialog",
  props: {
    visible: Boolean,classGradeId:Number
  },
  emits: ['on-cancel', 'on-confirm'],
  data(){
    return{
      courseForm:{
        date:null,
        classGradeId:null,
        content:null,
      }
    }
  },
  methods:{
    /**
     * 取消回调
     */
    cancel() {
      // this.userForm = {
      //   name:null,
      //   loginName:null,
      //   role:null,
      //   password:null,
      //   avatar:null,
      //   confirmPassword:null
      // };
      this.$emit('on-cancel');
    },
  }
}
</script>

<style scoped>

</style>